package com.example.dyxeapplication.menu.alfabet;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.dyxeapplication.R;
import com.example.dyxeapplication.menu.Menu;

public class Menu_Alfabet extends Activity {
	
	Intent myIntent;
	
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.menu_belajardanbermain);

	}

	public void belajar(View v) {
		myIntent = new Intent(this, Menu_Alfabet_Belajar.class);
		myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(myIntent);
	}

	public void bermain(View v) {
		myIntent = new Intent(this, Menu_Alfabet_Bermain.class);
		myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(myIntent);
	}
	
	@Override
	public void onBackPressed() {
		Intent backIntent = new Intent(this, Menu.class);
		backIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
	    startActivity(backIntent);
	}

}
